package com.callen.service;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

import com.callen.utils.SpringUtils;

@Component
public class SpringContextTool implements ApplicationContextAware{
	
	public static ApplicationContext context; 

	@Override
	public void setApplicationContext(ApplicationContext _context) throws BeansException {
		context=_context;
		SpringUtils.setSpringContext(context);
	}

}
